﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HospitalLeft.aspx.cs" Inherits="HZ.Supervise.Web.PageControl.HospitalLeft" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../Style/s-type.css" />

    <script src="../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../scripts/DynaForm.js" type="text/javascript"></script>

    <script src="../scripts/GenUtils.js" type="text/javascript"></script>

    <link rel="Stylesheet" type="text/css" href="../Style/style.css" />

    <script type="text/javascript">
        //        var COOKIE_NAME = 'iframeurl';

        //        $().ready(function() {
        //            var s = $.cookie(COOKIE_NAME);
        //            if (s != null) {
        //                $("#ifmain").attr("src", s);
        //            }
        //            else {
        //                $("#ifmain").attr("src", "../Secondphase/ReportHospital/ReportOfHospitalFirstLevel.aspx");
        //            }

        //        });
        $().ready(function() {
            var url = '<%=strURL%>';
            $("#ifmain").attr("src", url);

        });
        function seturl(sessionid) {//更改iframe内容
            CallFunc('../../Secondphase/ReportHospital/ReportOfHospitalFirstLevel.aspx?sessionid=' + sessionid, 'FORM', null, 'Main');
            //            $("#ifmain").attr("src", "../Secondphase/ReportHospital/ReportOfHospitalFirstLevel.aspx?sessionid=" + sessionid);
            // $("#ifmain").contents().find("#fist").attr("href", "http://www.baidu.com");
        }
        //        function Refresh() { //查询时不刷新iframe内容页

        //            $.cookie(COOKIE_NAME, $("#ifmain").attr("src"));
        //        }
        function document.onkeydown() {
            //使用document.getElementById获取到按钮对象
            var button = document.getElementById('<%=btnQuery.ClientID%>');
            if (event.keyCode == 13) {
                button.click();
                event.returnValue = false;
            }
        }

    </script>
    <script type="text/javascript">
    function a(obj) {
        var o = document.getElementById("gvwselect");
        var a = o.getElementsByTagName("a");
        for (i = 0; i < a.length; i++) {
            a[i].style.fontWeight = "normal";
        }
        obj.getElementsByTagName("a")[0].style.fontWeight = "bold";
    }
</script>
</head>
<body>
    <form id="form1" runat="server">
   
    <div id="main">
        <div class="left">
            <div class="left1">
                <h1 class="leftTitle1">
                    欢迎您！</h1>
                <ul>
                    <li>
                        <asp:Label ID="lblCurrentUser" runat="server" Text="Label"></asp:Label></li>
                    <li>当前角色： <asp:Label ID="lblCurrentRole" runat="server" Text="Label"></asp:Label></li>
                </ul>
            </div>
            <div class="left2">
                <h1 class="leftTitle2">
                    检索</h1>
                <table border="0" cellspacing="0" cellpadding="0" style="border-top:100px">
                    <tr>
                        <td>
                            <asp:Label ID="lbname" runat="server" Text="医院名称："></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtname" runat="server" Height="19px" Width="95px" CssClass="souSuo"></asp:TextBox>
                        </td>
                        <td style="padding-left:4px; padding-right:0px">
                            <asp:ImageButton ID="btnQuery" runat="server" OnClick="btnQuery_Click" ImageUrl="~/Images/ModalImageAh_New/souSuoBtn.png"
                                ToolTip="点击查询符合条件的数据"/>
                        </td>
                    </tr>
                   <%-- <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="医院类别 "></asp:Label>
                        </td>
                        <td colspan="2">
                            <asp:DropDownList ID="dropType" runat="server" Width="130px" Height="19px">
                            </asp:DropDownList>
                        </td>
                    </tr>--%>
                </table>
            </div>
            <div class="left3">
                <h1>
                    <span class="leftTitle3">医院名称</span></h1>
                <asp:GridView ID="gvwselect" runat="server" AutoGenerateColumns="False" CssClass="mainlist"
                    Width="100%" OnRowDataBound="gvwselect_RowDataBound" ShowHeader="false" 
                    EmptyDataText="无数据" onrowcreated="gvwselect_RowCreated">
                    <Columns>
                        <asp:BoundField DataField="HospitalName" HeaderText="医院名称" ItemStyle-HorizontalAlign="Center">
                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
                        </asp:BoundField>
                    </Columns>
                </asp:GridView>
                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" ShowPageSizeBox="false" ShowMoreButtons="true"
                    SkinID="gridviewLeft" OnPageChanged="AspNetPager1_PageChanged" NumericButtonCount="3"
                    ReverseUrlPageIndex="false" ShowDisabledButtons="False" ShowFirstLast="False"
                    ShowPrevNext="False" CustomInfoHTML="" CustomInfoStyle="display:none" Wrap="False"
                    PageSize="8">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
